import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({

    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'login',
            component: () => import('../views/Login.vue'),
        },
        {
            path: '/about',
            name: 'about',
            component: () => import('../views/AboutView.vue'),
        },
        {
            path: '/home',
            name: 'home',
            component: () => import('../views/HomeView.vue'),
        },
        {
            path: '/upload',
            name: 'upload',
            component: () => import('../views/UploadView.vue'),
        },
        {
            path: '/QqLogin',
            name: 'QqLogin',
            component: () => import('../views/QqLogin.vue'),
        },
        {
            path: '/verify-process',
            name: 'VerifyProcess',
            component: () => import('../views/VerifyProcess.vue'),
        },
        {
            path: '/upload',
            name: 'upload',
            component: () => import('../views/UploadView.vue'),
        },
        {
            path: '/map',
            name: 'MapView',
            component: () => import('../views/MapView.vue'),
        },
        {
            path: '/companyList',
            name: 'CompanyList',
            component: () => import('../home_views/CompanyList.vue'),
        },
        {
            path: '/jobList',
            name: 'jobList',
            component: () => import('../home_views/JobList.vue'),
        },
        {
            path: '/jobVue',
            name: 'JobVue',
            component: () => import('../home_views/JobVue.vue'),
        },
        {
            path: '/discover',
            name: 'Discover',
            component: () => import('../views/Discover.vue'),
        },
        {
            path: '/resume/edit',
            name: 'ResumeEditor',
            component: () => import('../components/ResumeEditor.vue'),
        },
        {
            path: '/resume/template',
            name: 'Template',
            component: () => import('../components/Template.vue'),
        },
        {
            path: '/companyDetail',
            name: 'CompanyDetailView',
            component: () => import('../home_views/CompanyDetailView.vue'),
        },
        //   {
        //   path: '/ws',
        //   name: 'ws',
        //   component: () => import('../home_views/web_socket.vue'),
        // },
    ],

})

export default router

